<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        section {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        .content {
            width: 250px;
            height: 250px;
            display: flex;
            position: relative;
        }

        /* 小圆圈 */
        .content span {
            position: absolute;
            left: 50%;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: red;
            transform: rotate(calc(45deg * var(--i)));
            transform-origin: center 40px;
            animation: load 1.2s ease infinite;
            animation-delay: calc(0.06s * var(--i));
        }

        /* 设置动画 */
        @keyframes load {
            0% {
                opacity: 1;
            }

            100% {
                opacity: 0.2;
            }
        }
    </style>
</head>

<body>
    <section>
        <div class="content">
            <span style="--i:1"></span>
            <span style="--i:2"></span>
            <span style="--i:3"></span>
            <span style="--i:4"></span>
            <span style="--i:5"></span>
            <span style="--i:6"></span>
            <span style="--i:7"></span>
            <span style="--i:8"></span>
        </div>
    </section>
</body>

</html>